package me.xiaoyan.java.chapter14.game;

public class GameTest {

	public static void main(String[] args) {
		Hero xiaobai = new Hero();//创建英雄
		
		Monster gebulin = new Monster();//创建一个哥布林
		gebulin.name = "哥布林";
		gebulin.hp = 100;
		
		xiaobai.attack(gebulin);

		System.out.println(gebulin.hp);
	}

}
